<?php

use think\facade\Route;

$IndexController = 'app\api\controller\IndexController@';
Route::group('index/', function () use ($IndexController) {
	Route::get('index', $IndexController . 'index');
	Route::get('getAllImg', $IndexController . 'getAllImg');

});
$TopicListController = 'app\api\controller\TopicListController@';
Route::group('TopicList/', function () use ($TopicListController) {
	Route::get('getDataFromUrl', $TopicListController . 'getDataFromUrl');
	Route::get('changList', $TopicListController . 'changList');
	Route::get('getTopicLoad', $TopicListController . 'getTopicLoad');
	Route::get('checkData', $TopicListController . 'checkData');
});
$UserController = 'app\api\controller\UserController@';
Route::group('User/', function () use ($UserController) {
	Route::get('list', $UserController . 'list');
	Route::get('UserLogin', $UserController . 'UserLogin');

});
$TimeController = 'app\api\controller\TimeController@';
Route::group('Time/', function () use ($TimeController) {
	Route::get('dayStart', $TimeController . 'dayStart');
	Route::get('dayEnd', $TimeController . 'dayEnd');
});

$AdController = 'app\api\controller\AdController@';
Route::group('Ad/', function () use ($AdController) {
	Route::get('getAllAd', $AdController . 'getAllAd');
});

$XkController = 'app\api\controller\XkController@';
Route::group('Xk/', function () use ($XkController) {
	Route::get('getXk', $XkController . 'getXk');
	Route::get('getXkCate', $XkController . 'getXkCate');
});

$CountController = 'app\api\controller\CountController@';
Route::group('Count/', function () use ($CountController) {
	Route::get('index', $CountController . 'index');
	Route::get('create', $CountController . 'create');
	Route::get('panel', $CountController . 'panel');
	Route::post('sexTongji', $CountController . 'sexTongji');
	Route::post('proTongji', $CountController . 'proTongji');
	Route::post('ageTongji', $CountController . 'ageTongji');

});
